#include <iostream>
#include <cstring>
using namespace std;

class Date
{
private:
    int Day, Month, Year;
public:
    Date(int inputDay, int inputMonth, int inputYear):Day(inputDay), Month(inputMonth), Year(inputYear){}
    void DisplayDate(void);
    bool operator == (const Date& comparedDate)
    {
        return (Day == comparedDate.Day && Month == comparedDate.Month && Year == comparedDate.Year);
    }
};

void Date:: DisplayDate(void)
{
    cout << Year << "-" << Month << "-" << Day << endl;
}

int main()
{
    Date date1(6, 4, 2017);
    Date date2(6, 4, 2018);
    date1.DisplayDate();
    date2.DisplayDate();
    if(date1 == date2)
    {
        cout << "It is the same day" << endl;
    }
    else cout << "It is a different day" << endl;
    return 0;
}
